package com.sciencep.pro.core.service.impl;

import com.sciencep.pro.core.domain.dto.dropdown.DeptSelectVO;
import com.sciencep.pro.core.domain.entity.Dept;
import com.sciencep.pro.core.dao.DeptMapper;
import com.sciencep.pro.core.service.IDeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Sciencep
 */
@Service
public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept> implements IDeptService {

    @Override
    public List<DeptSelectVO> getDeptSelectVOList() {

        return baseMapper.getDeptSelectVOList();
    }

    @Override
    public List<Dept> getDeptList() {
        return baseMapper.getDeptList();
    }

    @Override
    public boolean updateByDeptId(Dept dept) {
        return baseMapper.updateByDeptId(dept);
    }
}
